<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id|htmlentities}">
    <input type="hidden" name="row[status]" value="{$row.status|htmlentities}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">审核状态:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[examine]', $options, $row['examine'], ['id' => 'examineSelect', 'class'=>'form-control selectpicker', 'data-rule'=>'required', 'data-id'=>$row['id']])}
        </div>
    </div>
    <div id="backUrlPanel" class="form-group" style="display: none;">
        <label for="back_url" class="control-label col-xs-12 col-sm-2">扫脸url</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" id="back_url" type="text" name="row[back_url]" value="{$row['back_url']}" data-rule="required" placeholder="扫脸url" autocomplete="off" maxlength="200">
            <div class="help-block"></div>
        </div>
    </div>
    <div id="subMchidPanel" class="form-group" style="display: none;">
        <label for="sub_mchid" class="control-label col-xs-12 col-sm-2">子商户号</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" id="sub_mchid" type="text" name="row[sub_mchid]" value="{$row['sub_mchid']}" data-rule="required" placeholder="子商户号" autocomplete="off" maxlength="20">
            <div class="help-block"></div>
        </div>
    </div>
    <div id="remarkPanel" class="form-group" style="display: none;">
        <label for="remark" class="control-label col-xs-12 col-sm-2">备注</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" id="remark" type="text" name="row[remark]" data-rule="required" placeholder="拒绝理由" autocomplete="off" maxlength="200">{$row['remark']}</textarea>
            <div class="help-block"></div>
        </div>
    </div>
    <div id="buttonPanel" class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

<script type="text/javascript">
    window.facescan = "{$facescan}";
    window.complete = "{$complete}";
    window.refuse = "{$refuse}";
</script>
